package com.ruoyi.web.mapper;

import com.ruoyi.web.domain.OperatorRecord;
import com.ruoyi.web.domain.Product;

import java.util.List;


/**
 * 派单Mapper接口
 * 
 * @author song
 * @date 2024-05-17
 */
public interface OperatorRecordMapper 
{
    /**
     * 查询派单
     * 
     * @param id 派单主键
     * @return 派单
     */
    public OperatorRecord selectOperatorRecordById(Long id);

    /**
     * 查询派单列表
     * 
     * @param operatorRecord 派单
     * @return 派单集合
     */
    public List<OperatorRecord> selectOperatorRecordList(OperatorRecord operatorRecord);

    /**
     * 新增派单
     * 
     * @param operatorRecord 派单
     * @return 结果
     */
    public int insertOperatorRecord(OperatorRecord operatorRecord);

    /**
     * 修改派单
     * 
     * @param operatorRecord 派单
     * @return 结果
     */
    public int updateOperatorRecord(OperatorRecord operatorRecord);

    /**
     * 删除派单
     * 
     * @param id 派单主键
     * @return 结果
     */
    public int deleteOperatorRecordById(Long id);

    /**
     * 批量删除派单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOperatorRecordByIds(Long[] ids);

    OperatorRecord selectOperatorRecordByProductNo(String productNo);
}
